<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>ob_start callback function to repair the buffer</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ref.tidy.html">Tidy 函数</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.tidy-access-count.html">tidy_access_count</a></div>
 <div class="up"><a href="ref.tidy.html">Tidy 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.ob-tidyhandler" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ob_tidyhandler</h1>
  <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">ob_tidyhandler</span> &mdash; <span class="dc-title">ob_start callback function to repair the buffer</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.ob-tidyhandler-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">string</span> <span class="methodname"><strong>ob_tidyhandler</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$input</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$mode</code></span>
  ] )</div>

  <p class="para rdfs-comment">
   Callback function for <span class="function"><a href="function.ob-start.html" class="function">ob_start()</a></span> to repair the buffer.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.ob-tidyhandler-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">input</code></em></dt>

     <dd>

      <p class="para">
       The buffer.
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">mode</code></em></dt>

     <dd>

      <p class="para">
       The buffer mode.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.ob-tidyhandler-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the modified buffer.
  </p>
 </div>

 <div class="refsect1 examples" id="refsect1-function.ob-tidyhandler-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-3974">
    <p><strong>Example #1 <span class="function"><strong>ob_tidyhandler()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />ob_start</span><span style="color: #007700">(</span><span style="color: #DD0000">'ob_tidyhandler'</span><span style="color: #007700">);<br /><br />echo&nbsp;</span><span style="color: #DD0000">'&lt;p&gt;test&lt;/i&gt;'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

    <div class="example-contents"><p>以上例程会输出：</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 3.2//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;test&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre></div>
    </div>
   </div>
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.ob-tidyhandler-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.ob-start.html" class="function" rel="rdfs-seeAlso">ob_start()</a> - 打开输出控制缓冲</span></li>
   </ul>
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ref.tidy.html">Tidy 函数</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.tidy-access-count.html">tidy_access_count</a></div>
 <div class="up"><a href="ref.tidy.html">Tidy 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
